package cn.bugstack.springframework.context.support;

import cn.bugstack.springframework.beans.BeansException;

public class ClassPathXmlApplicationContext extends AbstractXmlApplicationContext{
    private String[] configLocations;
    public ClassPathXmlApplicationContext(){
    }
    public ClassPathXmlApplicationContext(String configLocations) throws BeansException{
        this(new String[]{configLocations});
    }
    public ClassPathXmlApplicationContext(String[] configLocations) throws BeansException{
        this.configLocations=configLocations;
        refresh();
    }
    @Override
    protected String[] getConfigLocation() {
        return configLocations;
    }
}
